﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HongStone.Repository.Migrations
{
    public partial class gaii9 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "FireFan",
                columns: table => new
                {
                    FireFanId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    LouId = table.Column<int>(type: "int", nullable: false),
                    DanId = table.Column<int>(type: "int", nullable: false),
                    CengId = table.Column<int>(type: "int", nullable: false),
                    HomeNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    State = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FireFan", x => x.FireFanId);
                });

            migrationBuilder.CreateTable(
                name: "Home",
                columns: table => new
                {
                    HomeId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HomeName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CodeId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Home", x => x.HomeId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FireFan");

            migrationBuilder.DropTable(
                name: "Home");
        }
    }
}
